<?php

namespace app\system\model\order;



use app\system\model\customer\OrderList;
use think\Model;


class Customer extends Model {
    // 表名
    protected $name = 'order_c';


    public function customerInfo(){
        return $this->hasOne(\app\system\model\Customer::class, 'id', 'customer_id');
    }



    public function detail(){
        return $this->hasMany(OrderList::class, 'order_id', 'id');
    }


}